(function(e,t){"use strict";function a(e,t){n(e,t);t.add(e)}function i(e,t,a){n(e,t);t.set(e,a)}function n(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}}function l(e,t,a){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return a}var r=new WeakMap;var s=new WeakMap;var o=new WeakSet;var c=function(){function e(t){var n=this;babelHelpers.classCallCheck(this,e);a(this,o);i(this,r,{writable:true,value:void 0});i(this,s,{writable:true,value:void 0});babelHelpers.classPrivateFieldSet(this,r,t.id);babelHelpers.classPrivateFieldSet(this,s,{width:900,cacheable:false,allowChangeHistory:false,events:{onClose:function e(){l(n,o,d).call(n).reload()}}})}babelHelpers.createClass(e,[{key:"openDetailSlider",value:function e(t){top.BX.SidePanel.Instance.open("details/".concat(parseInt(t),"/"),babelHelpers.classPrivateFieldGet(this,s))}},{key:"openCreateSlider",value:function e(){top.BX.SidePanel.Instance.open("details/0/",babelHelpers.classPrivateFieldGet(this,s))}},{key:"delete",value:function e(a){var i=this;BX.UI.Dialogs.MessageBox.confirm(t.Loc.getMessage("IBLOCK_PROPERTY_LIST_TEMPLATE_CONFIRM_DELETE"),(function(){var e=l(i,o,d).call(i);var t={ID:[a]};t[e.getActionKey()]="delete";e.reloadTable("POST",t);return true}))}}],[{key:"openCreateSliderStatic",value:function t(){e.Instance.openCreateSlider()}}]);return e}();function d(){if(babelHelpers.classPrivateFieldGet(this,r)){var e=BX.Main.gridManager.getInstanceById(babelHelpers.classPrivateFieldGet(this,r));if(e){return e}}throw new Error("Not found grid for property list with id ".concat(babelHelpers.classPrivateFieldGet(this,r)))}babelHelpers.defineProperty(c,"Instance",null);t.Reflection.namespace("BX.Iblock").PropertyListGrid=c})(this.window=this.window||{},BX);
//# sourceMappingURL=script.map.js